import com.cn.Mapper.goodsMapper.OrderMapper;
import com.cn.Mapper.vipMapper.VipcustomerMapper;
import com.cn.entity.goods.Goods_order;
import com.cn.util.SqlsesstionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

/**
 * @ClassName testOrder
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/15 19:10
 * @Version 1.0
 */
public class testOrder {
    @Test
    public  void showAll(){
        SqlSession sqlSession= SqlsesstionUtil.getSqlSession();
        OrderMapper orderMapper=sqlSession.getMapper(OrderMapper.class);
        List<Goods_order> goods_orderList =orderMapper.showAll();
        System.out.println(goods_orderList.toString());
    }

    @Test
    public  void insertOrderByCartId(){
        SqlSession sqlSession= SqlsesstionUtil.getSqlSession();
        OrderMapper orderMapper=sqlSession.getMapper(OrderMapper.class);
        orderMapper.insertOderByCart();
    }
}
